package com.app.mapper;

import com.app.model.SceneryModel;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface SceneryMapper extends BaseMapper<SceneryModel> {
    List<SceneryModel> getSceneryList(Integer page, Integer limit, String keyword, Integer type, Integer township);

    List<SceneryModel> selectSceneryList(Integer page, Integer limit, String keyword, Integer type, Integer township);

    int getSceneryCount(String keyword, Integer type);

    int selectSceneryCount(String keyword, Integer type);

}
